$(function () {
    findCommonData();
});
function findCommonData() {
    let data = myFrontAjax("/common");
    console.log(data,"foot");
    setCompanyData(data.companyModel);
    setNavDta(data.navModelList);
}
function setCompanyData(data) {
    $("#companyLogo").attr("src", data.logo);
    $("#companyPhone").html(data.phone);
}

function setNavDta(data) {
    let html = '';
    for (let i = 0; i < data.length; i++) {
        html += '<a href="' + data[i].href + '">\n' +
            '                <div>' + data[i].title + '</div>\n' +
            '            </a>';
    }
    $("#navBody").html(html);
}